package com.lantosec.hmrp.modules.system.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.lantosec.hmrp.core.mvc.BaseVO;
import com.lantosec.hmrp.modules.system.entity.SysBigscreenSql;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 大屏接口SQL VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="SysBigscreenSql对象", description="大屏接口SQL")
public class SysBigscreenSqlVO extends BaseVO<SysBigscreenSql> {
    private static final long serialVersionUID = 1L;


    public SysBigscreenSqlVO(SysBigscreenSql entity){
        this.sqlName = entity.getSqlName();
        this.sqlContent = entity.getSqlContent();
        this.remark = entity.getRemark();
    }

    @Override
    public SysBigscreenSql convertToEntity(){
        return new SysBigscreenSql(this);
    }


    @ApiModelProperty(value = "SQL名称")
    private String sqlName;

    @ApiModelProperty(value = "SQL内容")
    private String sqlContent;

    @ApiModelProperty(value = "说明信息")
    private String remark;

    @TableField(exist = false)
    private Integer flag;

}
